package com.permissions.dispatcher.processor.exception;

import javax.lang.model.element.ExecutableElement;

/**
 * 重复方法名异常
 */
public class DuplicatedMethodNameException extends RuntimeException {
    /**
     * 重复方法名异常
     */
    public DuplicatedMethodNameException(ExecutableElement executableElement) {
        super(
                "RuntimeException("
                        + executableElement.toString()
                        + " has duplicated '@NeedsPermission' method. The method annotated with '@NeedsPermission'"
                        + " must has the unique name.");
    }
}
